<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>首页</title>
  <link rel="stylesheet" href="../assets/css/element-ui.css"/>
  <link rel="stylesheet" href="../assets/css/styles.css"/>
  <link rel="stylesheet" href="../assets/css/container.css" />
  <link rel="stylesheet" href="../assets/css/index_styles.css" />
  <script src="../assets/js/constant.js"></script>
  <script src="../assets/js/utils.js"></script>
  <script src="../assets/js/axios.min.js"></script>
  <script src="../assets/js/auth.js"></script>
  <!-- 引入 Vue.js -->
  <script src="../assets/js/vue.js"></script>
  <!-- 引入 Element UI 的 JS 文件 -->
  <script src="../assets/js/element-ui.js"></script>
  <script src="../assets/js/cdn.js"></script>
  <link rel="stylesheet" href="../assets/fontawesome-free-6.7.2-web/css/all.min.css" />
  <style>

      .center-grid {
        width: 80%;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin: 0 auto;
      }

      .center-item {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
      }

      .center-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      }

      .center-icon {
        width: 60px;
        height: 60px;
        background-color: #e3f2fd;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
        color: #1e88e5;
        font-size: 24px;
      }

      /* 图标样式 */
      .user-icon:before {
        content: '👤';
      }
      .order-icon:before {
        content: '📋';
      }
      .product-icon:before {
        content: '📦';
      }
      .inventory-icon:before {
        content: '🏭';
      }
      .finance-icon:before {
        content: '💰';
      }
      .data-icon:before {
        content: '📊';
      }
      .system-icon:before {
        content: '⚙️';
      }
      .message-icon:before {
        content: '📨';
      }

      .center-item h3 {
        margin-bottom: 10px;
        color: #333;
      }

      .center-item p {
        color: #666;
        margin-bottom: 15px;
        height: 40px;
      }

      .center-item .btn {
        display: inline-block;
      }
  </style>
</head>
<body>
<div id="app">
  <lx-page-container>
    <lx-header slot="header" v-on:toggle="isToggle = !isToggle" :type="1"></lx-header>
    <lx-sidebar slot="sidebar" :is-collapse="isToggle"></lx-sidebar>
    <lx-main-content slot="content">
      <div class="center-grid mt-10">
        <div style=" margin-top: 10%; text-align: center">
        <h2>欢迎访问订单管理系统！</h2>
        </div>
      </div>
    </lx-main-content>
  </lx-page-container>
</div>
<script type="module">
  import LxPageContainer from './../pages/components/LxPageContainer/index.js'
  import LxHeader from './../pages/components/LxHeader/index.js'
  import LxSidebar from './../pages/components/LxSidebar/index.js'
  import LxMainContent from './../pages/components/LxMainContent/index.js'

  Vue.component('lx-page-container', LxPageContainer)
  Vue.component('lx-header', LxHeader)
  Vue.component('lx-sidebar', LxSidebar)
  Vue.component('lx-main-content', LxMainContent)
    checkAuthentication(1)
    new Vue({
        el: '#app',
        data() {
            return {
                isToggle: false
            };
        },
        methods: {
        }
    });
</script>
</body>
</html>
